<template>
    <div class='tmp'>
        <h2 class='goodsshowtitle'>{{goodscontentlist.title}}</h2>
        <div v-html='goodscontentlist.content' class='goodsshow'></div>
    </div>
</template>
<script>
    import common from '../field/getfield.js'
    export default{
        data(){
            return {
                goodscontentlist:{},
                goodsid:0
            }
        },
        methods:{
            getgoodscontent(){
                this.goodsid=this.$route.params.goodsid;
                let url = common.apidomain+'/api/goods/getdesc/'+this.goodsid;
                this.$http.get(url).then(res=>{
                    this.goodscontentlist=res.body.message[0];
                    console.log(this.goodscontentlist)
                })
            }
        },
        created(){
            this.getgoodscontent();
        }
    }

</script>
<style scoped>
    .goodsshowtitle{
        font-size: 18px;
        text-align: center;
    }
    .goodsshow{
        width:100%;
    }
    .goodsshow *{
        width:100%;
    }
</style>